package com.zhbr.mvp.contract;

import com.zhbr.mvp.base.model.IModel;
import com.zhbr.mvp.base.view.IView;
import com.zhbr.entity.MPageInfo;
import com.zhbr.entity.TGdfwPqgd;

import java.util.Map;

import rx.Subscriber;

public class PageConstract {

    public interface View extends IView {
        /**
         * 成功
         */
        void onGetDataSuccess(MPageInfo<TGdfwPqgd> data);
        void onGetDataFail(Throwable ex, String code, String msg);

    }

    public interface Presenter {

        void onGetData(int pageNum,int pageSize);

    }

    public interface Model extends IModel {
        void onGetData(int pageNum,int pageSize,Subscriber subscriber);
    }

}
